package com.example.myapplication.db

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize

@Parcelize
@Entity
data class User (
    @PrimaryKey(autoGenerate = true)
    val id:Int,
    @ColumnInfo(name = "account")
    var account:String,
    @ColumnInfo(name = "password")
    var password:String,
    @ColumnInfo(name = "creditRating")
    var creditRating:Int,
    @ColumnInfo(name= "reward")
    var reward:String,
    @ColumnInfo(name = "selfIntroduction")
    var selfIntroduction:String,
    @ColumnInfo(name = "chatHistory")
    var chatHistory:String

) : Parcelable